bitkeeper revision 1.1159.151.1 (418803bcQsPRkzzuqVsajF6mgmahFw)
authoriap10@labyrinth.cl.cam.ac.uk <iap10@labyrinth.cl.cam.ac.uk>
Tue, 2 Nov 2004 22:01:32 +0000 (22:01 +0000)
committeriap10@labyrinth.cl.cam.ac.uk <iap10@labyrinth.cl.cam.ac.uk>
Tue, 2 Nov 2004 22:01:32 +0000 (22:01 +0000)
Update xen-clone to cope with the new install tar ball

tools/misc/xen-clone

index 63fccb841d23f1231db61f80a90f3497c30cff74..e79ff04a87d11354dc770960754758d379823f91 100755 (executable)
@@ -23,6 +23,7 @@ esac
 
 DEST_DIR=${2:-xeno-clone}
 DEST_BK_REP=`basename "${BK_REP}"`
+DEST_VER=`basename ${DEST_BK_REP} .bk`
 
 echo usage: xen-clone bk_repository dest_dir orig_linux_dir
 echo Source BK Repository : ${BK_REP}
@@ -37,6 +38,8 @@ TOP=`/bin/pwd`
 case "$SITE" in
 UCCL)
        PATH=$PATH:/usr/groups/xeno/build_tools/bin
+       mkdir ${DEST_VER}-install
+       ln -s ${DEST_VER}-install install
        mkdir -p install/boot
        cd install/boot
        ln -sf ../../../xeno-roots/roots .